package com.leonzx.base.entity.system;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author:梁亮
 * @Description:
 * @Date: 2018/6/4 11:46
 */
@Table(name = "base_user")
public class User implements Serializable {
    @Id
    @Column(name = "id")
    private String id;
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "create_user_id")
    private String createUserId;

    @Column(name = "username")
    private String username;
    @Column(name = "name")
    private String name;
    @Column(name = "password")
    private String password;
    @Column(name = "state")
    private Integer state;

    @Column(name = "theme")
    private String theme;
    @Column(name = "menu_position")
    private Integer menuPosition;
    @Column(name = "im_sign")
    private String imSign;
    @Column(name = "im_status")
    private String imStatus;

    /*传值属性*/
    @Transient
    private String createUserName;
    @Transient
    private String createTimeStr;

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public Integer getMenuPosition() {
        return menuPosition;
    }

    public void setMenuPosition(Integer menuPosition) {
        this.menuPosition = menuPosition;
    }

    public String getImSign() {
        return imSign;
    }

    public void setImSign(String imSign) {
        this.imSign = imSign;
    }

    public String getImStatus() {
        return imStatus;
    }

    public void setImStatus(String imStatus) {
        this.imStatus = imStatus;
    }
}
